package pl.edu.mimuw.mas.util;

import java.util.LinkedList;

public final class Range {
	public static final float DEER_VISIBILITY = 20f;
	public static final float SHOOT_RANGE = 20f;
	
	public static final int HELICOPTER_SEARCH_RANGE = 20;
	public static final LinkedList<Move> HELICOPTER_SEARCH_CAPABILITY = generateHelicopterSearchCapability(HELICOPTER_SEARCH_RANGE);

	private static LinkedList<Move> generateHelicopterSearchCapability(int r) {
		LinkedList<Move> res = new LinkedList<Move>(); 
		
		for(int x = -r; x <= r; x++) {
			for(int y = -r; y <= r; y++) {
				if(PositionHelper.getDistance(x, y, 0, 0) <= r) {
					res.add(new Move(x, y));
				}
			}
		}
		
		return res;
	}
}
